import sys ,socket

result = socket.getaddrinfo(sys.argv[1],None,0,socket.SOCK_STREAM)

count = 0
for item in result:
	if not '::' in item[4][0]:
		print "this ipv4> \n"	
		print "No.%d :  %s"%(count,item[4])
 	if '::' in item[4][0]:
		print "this is IPV6> \n"
		print "No.%d :  %s"%(count,item[4])
		
	count += 1
